//获取会员地址列表
export function fetchList() {
  let data = {
    "code": 200,
    "msg": null,
    "data": {
      "pageNum": 1,
      "pageSize": 5,
      "totalPage": 1,
      "total": 1,
      "list": [{
        'id': 1,
        'userId': '100',
        'userName': '曾哥',
        'userPhone': '19925798727',
        'receiveName': '曾繁华',
        'receivePhone': '18577183469',
        'status': 1,
        'type': 0,
        'createTime': 1582772171,
        'address': '广州白云区福泰西路春庭花园',
      }]
    }
  }
  return {
    url: 'user/address/fetchList',
    type: 'post',
    data: data
  }

}
// 删除状态
export function updateDeleteStatus() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {
      'id': 1,
      'userId': '100',
      'userName': '曾哥',
      'userPhone': '19925798727',
      'receiveName': '曾繁华',
      'receivePhone': '18577183469',
      'status': 1,
      'type': 0,
      'createTime': 1582772171,
      'receiveAddress': '广州白云区福泰西路春庭花园',
    }
  }
  return {
    url: 'user/address/updateDeleteStatus',
    type: 'get',
    data: data
  }
}

// 获取单个信息
export function info() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {

    }
  }
  return {
    url: 'user/address/info',
    type: 'get',
    data: data
  }
}

// 更新信息
export function update() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {}
  }
  return {
    url: 'user/address/update',
    type: 'get',
    data: data
  }
}
